import { createStore } from 'vuex'

export default createStore({
  state: {
    isLogin: true
  },
  getters: {},
  mutations: {
    login(state, payload) {
      state.isLogin = true
      console.log(payload)
    }
  },
  actions: {
    login({ commit }, payload) {
      commit('login', payload)
    }
  },
  modules: {}
})
